cmake_minimum_required(VERSION 3.10)
project(OSDetector)

if(CMAKE_SYSTEM_PROCESSOR STREQUAL "armv7l")
  message("Processor: ${CMAKE_SYSTEM_PROCESSOR} use default env")
else()
  set(CMAKE_CXX_COMPILER /tools/Xilinx/Vitis/2021.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-g++)
  set(CMAKE_SYSROOT /media/xilinx/data/xiao_brd_test/mz7a_plnx/petalinux/images/linux/sdk/sysroots/cortexa9t2hf-neon-xilinx-linux-gnueabi)
endif()

project(MyGiGe)
file(GLOB SRC_FILES "*.c" "*.cpp" "*.h")
add_executable(line_scan_app ${SRC_FILES})
target_link_libraries(line_scan_app rt pthread)




